<form action="{% url 'polls:vote' question.id %}" method="post" class="vote-form">
    {% csrf_token %}
    <fieldset class="vote-options">
        <legend class="vote-question">
            <h1>{{ question.question_text }}</h1>
        </legend>
        
        {% if error_message %}
            <div class="error-message" role="alert">
                <strong>{{ error_message }}</strong>
            </div>
        {% endif %}
        
        <div class="choices-list">
            {% for choice in question.choice_set.all %}
                <div class="choice-option">
                    <input type="radio" 
                           name="choice" 
                           id="choice{{ forloop.counter }}" 
                           value="{{ choice.id }}"
                           class="choice-input">
                    <label for="choice{{ forloop.counter }}" class="choice-label">
                        {{ choice.choice_text }}
                    </label>
                </div>
            {% endfor %}
        </div>
    </fieldset>
    
    <button type="submit" class="submit-button">Vote</button>
</form>